<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;

class Common extends Validate
{
    /**
     * 验证手机号格式
     */
    protected function mobile($value)
    {
        return preg_match('/^1[3-9]\d{9}$/', $value);
    }
}
